<table border="0" cellpadding="4" cellspacing="1" width="100%">
  <tr valign="middle">
    <th >Current wallet value</th>
    <th >Net Amount</th>
    <th >Brokerage</th>
    <th>Gross Amount</th>
  </tr>
<% if (@inout.nil?) %>
  <tr valign="middle">
    <td ><strong>Potential income/outcome</strong></td>
    <td>.....</td>
    <td>.....</td>
    <td>.....</td>
  </tr>
  <tr valign="middle">
    <td ><strong>Current total value</strong></td>
    <td>.....</td>
    <td>.....</td>
    <td>.....</td>
  </tr>
<% else %>
  <tr valign="middle">
    <td ><strong>Potential income/outcome</strong></td>
    <td class="<%= totalColor(@inout.net_amount) %>"><%= sprintf("%0.2f", @inout.net_amount) %></td>
    <td class="<%= totalColorLoss %>"><%= sprintf("%0.2f", @inout.brokerage) %></td>
    <td class="<%= totalColor(@inout.net_amount) %>"><%= sprintf("%0.2f", @inout.gross_amount) %></td>
  </tr>
  <tr valign="middle">
    <td ><strong>Current total value</strong></td>
    <td class="<%= totalColor(@total.net_amount) %>"><%= sprintf("%0.2f", @total.net_amount) %></td>
    <td class="<%= totalColorLoss %>"><%= sprintf("%0.2f", @total.brokerage) %></td>
    <td class="<%= totalColor(@total.gross_amount) %>"><%= sprintf("%0.2f", @total.gross_amount) %></td>
  </tr>
<% end %>
</table>